#CC=/home/sainw/esd/backfire_10.03/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin/mipsel-openwrt-linux-uclibc-gcc
CC=gcc
OBJECTS_TEST=test.o common.o server.o
OBJECTS=main.o common.o server.o
CFLAGS=

all: compile
	
%.o: %.c
	$(CC) $(CFLAGS) -g -c -o $@ $<

compile: $(OBJECTS)
	$(CC) -o lcloud $(OBJECTS)

compile_test: $(OBJECTS_TEST)
	$(CC) -g -o test $(OBJECTS_TEST)

clean:
	rm -f *.o *.so lcloud test

run:
	sudo ./lcloud
	
run_test:
	./test